<?PHP
/**
 * LianPHP扩展类库入口
 * 
 * @author 大春 lianwanchun@163.com
 * @version 0.1 
 * @copyright Copyright &copy; 2010 lian wan chun
 */
class ExpandInterface extends LianPhp{
	
	protected static $config;

	public function __construct(){
		self::$config['Imgage'] 	= "Imgage.class.php";
		self::$config['String'] 	= "String.class.php";
		self::$config['Tool'] 		= "Tool.class.php";
		self::$config['Page'] 		= "Page.class.php";
	}

	public function __get($name){
		if (array_key_exists($name, self::$config)){
			include_once(self::$config[$name]);
			$this->$name = new $name;
			return $this->$name;
		}
	}

	public function __set($name,$value){
		$this->$name = $value;
	}
}
?>